
// 导入axios实例
import request from './request';

// 记录服务器地址
const host_url = `http://127.0.0.1:4000`;


// get请求
export const getFn = (url,data={})=> {
    return request.get(`${host_url}${url}`,{params: data})
}

// post请求
export const postFn = (url,data={})=> {
    return request.get(`${host_url}${url}`,data)
}